import request from '@/utils/request'

// 获取 - 部门列表
export function getDepartment() {
  return request.get('/company/department')
}

// 获取 - 部门负责人列表
export function getManagerList() {
  return request.get('/sys/user/simple')
}

// 新增 - 部门
export function addDepartment(data) {
  return request.post('/company/department', data)
}

// 获取 - 部门详情
export function getDepartmentDetail(id) {
  return request.get(`/company/department/${id}`)
}

// 修改 - 部门详情
export function updateDepartment(id, data) {
  return request.put(`/company/department/${id}`, data)
}

// 删除 - 部门
export function delDepartment(id) {
  return request.delete(`/company/department/${id}`)
}

